﻿<CascadingValue Value="this">
    <MudTabs Elevation="4">
        <Header>
            <MudButton Variant="Variant.Filled" Size="Size.Small" OnClick="GoBackClickHandle">返回列表</MudButton>
        </Header>
        <ChildContent>
            <MudTabPanel Text="基本信息">
                <DataConfigBasicIndex></DataConfigBasicIndex>
            </MudTabPanel>
            <MudTabPanel Text="字段管理">
                <DataConfigFieldIndex></DataConfigFieldIndex>
            </MudTabPanel>
            <MudTabPanel Text="规则管理">
                <DataConfigRuleIndex></DataConfigRuleIndex>
            </MudTabPanel>
        </ChildContent>
    </MudTabs>

</CascadingValue>

@code {

    [CascadingParameter]
    public DataConfigIndex? DataConfigIndex { get; set; }

    void GoBackClickHandle()
    {
        DataConfigIndex?.SetDataConfigCode(string.Empty);
        DataConfigIndex?.SetDynamicComponentType(typeof(DataConfigTable));
    }

}